import request from '@/utils/request'
// 列表
export function getList(data, page) {
    return request({
        url: '/Operations_recharge_package/recharge_package_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 获取分页
export function getPage(data) {
    return request({
        url: '/Operations_recharge_package/recharge_package_page',
        method: 'post',
        data: data
    })
}
export function getBrandList(data) {
    return request({
        url: '/General/get_brand_second',
        method: 'post',
        data: data
    })
}
// 获取门店列表
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
// 获取已配置的门店列表
export function get_check_store_list(data) {
    return request({
        url: '/Operations_recharge_package/select_store',
        method: 'post',
        data: data
    })
}
// 保存门店
export function saveStore(data) {
    return request({
        url: '/Operations_recharge_package/config_store',
        method: 'post',
        data: data
    })
}
// 状态
export function statePackage(data) {
    return request({
        url: '/Muma_recharge_package/recharge_package_disable',
        method: 'post',
        data: data
    })
}
// 获取编辑信息
export function getGrade(data) {
    return request({
        url: '/User_grade/grade_set',
        method: 'post',
        data: data
    })
}
// 新增编辑保存
export function savePackage(data, url) {
    return request({
        url: url,
        method: 'post',
        data: data
    })
}
// 删除
export function delPackage(data) {
    return request({
        url: '/Operations_recharge_package/del_recharge_package',
        method: 'post',
        data: data
    })
}